package com.bw.service.impl;

import com.bw.entity.GoodsInfo;
import com.bw.mapper.GoodsMapper;
import com.bw.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class GoodsServiceImpl implements GoodsService {

    @Autowired
    GoodsMapper goodsMapper;

    @Transactional
    @Override
    public void add(GoodsInfo goodsInfo) {
        goodsMapper.add(goodsInfo);
    }
}
